package com.srxz.personnelsystem.system.repository;

import com.srxz.personnelsystem.system.entity.DepartToPosition;
import com.srxz.personnelsystem.system.entity.Department;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

/**
 * @作者：wgchao
 * @时间：15:41 2019/2/24 0024
 * @用途：
 **/
@Repository
public interface DepartToPositionRepository extends JpaRepository<DepartToPosition, String>,JpaSpecificationExecutor<DepartToPosition> {
    public void deleteAllByDepartmentIdAndPositionId(String departmentId, String positionId);
}
